package com.dzt.cloudreader;

import android.app.Application;

import com.dzt.cloudreader.network.RetrofitHelper;
import com.dzt.cloudreader.utils.ActivityStackManager;
import com.dzt.cloudreader.utils.JDensityKit;
import com.dzt.cloudreader.utils.JLogKit;
import com.dzt.cloudreader.utils.JPreferenceKit;
import com.dzt.cloudreader.utils.JToastKit;

/**
 * Created by M02323 on 2017/12/14.
 */

public class CloudReaderApp extends Application{

	private static CloudReaderApp instance;

	public static CloudReaderApp getInstance(){
		return instance;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		JLogKit.getInstance().setTag("cloudReader->");
		JToastKit.getInstance().init(this);
		RetrofitHelper.getInstance().init(this);
		ActivityStackManager.getInstance().init();
		JPreferenceKit.getInstance().init(this);
		JDensityKit.getInstance().init(this);
	}
}
